package hcn.protocol.brandnew;

import com.fasterxml.jackson.annotation.JsonIgnore;
import hcn.enums.PlatFormServiceEnum;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlTransient;
import java.util.Map;

/**
 * 基础请求参数
 *
 * @author neoLin - 2023/07/20 09:56
 **/
@XmlAccessorType(XmlAccessType.FIELD)
public class BaseRequest {

    /**
     * 租户号
     */
    @XmlTransient
    private String tenantId;

    /**
     * 机构代码
     */
    @XmlTransient
    private String organization;

    /**
     * 服务调用方
     */
    @XmlTransient
    private String sender;

    /**
     * 额外参数
     */
    @XmlTransient
    @JsonIgnore
    private Map<String, Object> extras;

    /**
     * 服务类型枚举
     */
    @XmlTransient
    @JsonIgnore
    private PlatFormServiceEnum serviceEnum;

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public PlatFormServiceEnum getServiceEnum() {
        return serviceEnum;
    }

    public void setServiceEnum(PlatFormServiceEnum serviceEnum) {
        this.serviceEnum = serviceEnum;
    }
}
